package com.hnkywl.sts.entity.organ;

import com.hnkywl.sts.entity.BaseEntity;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: Jerry
 * Date: 13-7-23
 * Time: 上午10:09
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "T_SYS_LJGYS")
@Where(clause = "deleted!='1'")
public class LjGys extends BaseEntity {
    @Id
    @SequenceGenerator(name = "seqLjGys", allocationSize = 1, sequenceName = "SEQ_SYS_LJGYS")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqLjGys")
    private Long id;

    /**
     * 路径
     */
    @ManyToOne
    @JoinColumn(name="LJLS_ID")
    private LjLs ljls;

    /**
     * 供应商
     */
    @ManyToOne
    @JoinColumn(name="GYS_ID")
    private Qyjg gys;

    /**
     * 上游，下游
     */
    private String lx;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public LjLs getLjls() {
        return ljls;
    }

    public void setLjls(LjLs ljls) {
        this.ljls = ljls;
    }

    public Qyjg getGys() {
        return gys;
    }

    public void setGys(Qyjg gys) {
        this.gys = gys;
    }

    public String getLx() {
        return lx;
    }

    public void setLx(String lx) {
        this.lx = lx;
    }


}
